//
//  UILbel+Extension.swift
//  SinaWeibo
//
//  Created by 石林 on 15/11/20.
//  Copyright © 2015年 石林. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(title: String,size: CGFloat, color: UIColor?) {
        
        self.init()
        text = title
        font = UIFont.systemFontOfSize(size)
        textAlignment = NSTextAlignment.Center
        textColor = color
        numberOfLines = 0
        sizeToFit()
        
    }
}
